package System_code;

import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2022-08-07
 * Time: 11:13
 */
public class Demo22 {
    public static void main(String[] args) {
        ExecutorService threadPool= Executors.newFixedThreadPool(10);
        for(int i=0;i<100;i++){
            threadPool.submit(new Runnable() {
                @Override
                public void run() {
                    System.out.println("卢世杰同学");
                }
            });
        }
    }
}
